﻿@using Telerik.Web.Mvc.UI;
@using WebSite.ViewModels;

@model TabsViewModel

@(Html.Telerik().TabStrip()
    .Name(Model.ControllerName)
    .Items(tabStrip =>
    {
        foreach (TabItem tabItem in Model.Tabs)
        {
            tabStrip.Add()
                .Text(tabItem.Text)
                .ImageUrl(tabItem.ImageUrl)
                .Content(tabItem.Content.ToHtmlString());
        }
    })
    .SelectedIndex(0))
